package com.mofei.data.linkedlist.simple;

/**
 * 结点
 */
public class Node<T> {

    /**
     * 数据
     */
    T data;

    /**
     * 后继节点
     */
    Node next;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }
}
